<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<div class="content-wrap">
        <div class="wrapper" style="bottom: 50px;">
            <ul class="nav nav-tabs">
                <li>
                    <a href="#"  onclick="loadDiv('mainCenterDiv','${ctx}/csm/expNameDict/index')">消耗品名称字典</a>
                </li>
                <li class="active">
                    <a href="#" onclick="loadDiv('leftCenterDiv','${ctx}/csm/expNameDict/form')">
                        <c:choose>
                            <c:when test="${expNameDict.id==''|| expNameDict.id==null}">
                                添加消耗品名称
                            </c:when>
                        </c:choose>
                    </a>
                </li>
            </ul>
            <section class="panel panel-default">
                <div class="panel-body">
                    <div class="col-lg-12">
                        <form:form id="inputForm" data-parsley-validate="" modelAttribute="expNameDict" onsubmit="return formSaveLoad('mainCenterDiv','inputForm','${ctx}/csm/expNameDict/save','${ctx}/csm/expNameDict/index');" method="post" class="form-horizontal">
                            <form:hidden path="id"/>
                                <div class="form-group">
                                    <label class="col-sm-4 control-label">消耗品类别：</label>
                                    <div class="col-sm-6">
                                        <sys:treeselect selectedParent="true" id="expType" name="expType" value="${expNameDict.expType}"  update="${not empty expNameDict.id}" labelName="expType1" labelValue="${expNameDict.expType}"
                                                        title="消耗品类别" url="/csm/expClassDict/treeData" extId="${expNameDict.id}" cssClass="form-control" isnull="true" />
                                    </div>
                                </div>
                                <%--<div class="form-group">--%>
                                    <%--<label class="col-sm-4 control-label">消耗品剂型：</label>--%>
                                    <%--<div class="col-sm-6">--%>
                                        <%--<form:select path="expFrom" class="form-control" data-parsley-required="true">--%>
                                            <%--<form:option value="" label=""/>--%>
                                            <%--<form:options items="${fns:getDictList('DRUG_FORM_DICT')}" itemLabel="label" data-parsley-required="true" itemValue="value"  htmlEscape="false"/>--%>
                                        <%--</form:select>--%>
                                    <%--</div>--%>
                                <%--</div>--%>
                                <div class="form-group">
                                    <label class="col-sm-4 control-label">消耗品名称：</label>
                                    <div class="col-sm-6">
                                        <form:input path="expName" htmlEscape="false"  class="form-control" data-parsley-required="true"  maxlength="100" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-4 control-label">产品类别：</label>
                                    <div class="col-sm-6">
                                        <form:select path="expStyle" class="form-control" data-parsley-required="true">
                                            <form:option value="" label=""/>
                                            <form:options items="${fns:getDictList('EXP_STYLE')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
                                        </form:select>
                                    </div>
                                </div>
                                <%--<div class="form-group">--%>
                                <%--<label class="col-sm-4 control-label">消耗品属性：</label>--%>
                                <%--<div class="col-sm-6">--%>
                                        <%--<form:input path="preciousFlag" htmlEscape="false" class="form-control"  maxlength="1" />--%>
                                    <%--<form:select path="expIndicator" class="form-control" data-parsley-required="true">--%>
                                        <%--<form:option value="" label="" />--%>
                                        <%--<form:options items="${fns:getDictList('DRUG_TYPE_DICT')}" itemLabel="label" data-parsley-required="true" itemValue="value" htmlEscape="false"/>--%>
                                    <%--</form:select>--%>
                                <%--</div>--%>
                                <%--</div>--%>
                                <div class="form-group">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存">&nbsp;
                                        <input id="btnCancel" class="btn" type="button" value="返 回" onclick="loadDiv('mainCenterDiv','${ctx}/csm/expNameDict/index')">
                                </div>
                            </div>
                        </form:form>
                    </div>

                </div>
            </section>
        </div>
    </div>